package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 酒店预订对象 hotel_book
 * 
 * @author xdh
 * @date 2024-06-25
 */
public class HotelBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预订id */
    private Integer bookingId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 酒店id */
    @Excel(name = "酒店id")
    private Integer hotelId;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkinDate;

    /** 退房日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退房日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 人数 */
    @Excel(name = "人数")
    private Integer guestCount;

    /** 需求房间数量 */
    @Excel(name = "需求房间数量")
    private Integer roomCount;

    /** 总价 */
    @Excel(name = "总价")
    private Integer totalPrice;

    /** 支付状态（已支付/未支付） */
    @Excel(name = "支付状态", readConverterExp = "已=支付/未支付")
    private String paymentStatus;

    public void setBookingId(Integer bookingId) 
    {
        this.bookingId = bookingId;
    }

    public Integer getBookingId() 
    {
        return bookingId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setHotelId(Integer hotelId) 
    {
        this.hotelId = hotelId;
    }

    public Integer getHotelId() 
    {
        return hotelId;
    }
    public void setCheckinDate(Date checkinDate) 
    {
        this.checkinDate = checkinDate;
    }

    public Date getCheckinDate() 
    {
        return checkinDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setGuestCount(Integer guestCount) 
    {
        this.guestCount = guestCount;
    }

    public Integer getGuestCount() 
    {
        return guestCount;
    }
    public void setRoomCount(Integer roomCount) 
    {
        this.roomCount = roomCount;
    }

    public Integer getRoomCount() 
    {
        return roomCount;
    }
    public void setTotalPrice(Integer totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public Integer getTotalPrice() 
    {
        return totalPrice;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookingId", getBookingId())
            .append("userId", getUserId())
            .append("hotelId", getHotelId())
            .append("checkinDate", getCheckinDate())
            .append("endDate", getEndDate())
            .append("guestCount", getGuestCount())
            .append("roomCount", getRoomCount())
            .append("totalPrice", getTotalPrice())
            .append("paymentStatus", getPaymentStatus())
            .toString();
    }
}
